//
//  AlphaLayer.m
//  ProjectL
//
//  Created by Nguyen Tan Loc on 12/9/13.
//  Copyright (c) 2013 Nguyen Tan Loc. All rights reserved.
//

#import "AlphaLayer.h"

@implementation AlphaLayer

-(id) init
{
    if (self = [super initWithColor:ccc4(0, 0, 0, POPUP_ALPHA)])
    {
        self.touchEnabled = YES;
    }
    
    return self;
}

-(void) registerWithTouchDispatcher
{
    [[[CCDirector sharedDirector] touchDispatcher] addTargetedDelegate:self priority:(kCCMenuHandlerPriority - 1) swallowsTouches:YES];
}

-(BOOL) ccTouchBegan:(UITouch *)touch withEvent:(UIEvent *)event
{
    return YES;
}

@end
